
<div class="actors form">
	<?php echo $this->Ajax->Form(array('type' => 'post',
    'options' => array(
        'model'=>'Actor',
        //'update'=>'dialog-form',
        'url' => array(
            'controller' => 'actors',
            'action' => 'add2'
        ),
		'confirm' => 'Are you sure?',
		'indicator' => 'loading',
        'before' => 'name=$("#ActorName").val();',
		'complete'=>'nuevo_actor(request.responseText);'
    )
));

?>
		<fieldset>
			<legend><?php echo __('Add Actor'); ?></legend>
		<?php
			echo $this->Form->input('name',array('div'=>(array('id'=>'div-name-actor'))));
			echo $this->Form->input('birthday');
			echo $this->Form->input('biography');
			echo $this->Form->input('photo');
			echo '<div id="accordion">';
			echo '<h3><a href="#" class="link_accordion">Films</a></h3>';
			echo $this->Form->input('Film',array('multiple'=>'checkbox', 'class'=>'check','label'=>false));
			echo '</div>';
		?>
		</fieldset>
	<?php echo $this->Form->end(__('Submit'));?>
	</div>